<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>弹跳方块</title>
    <style>
      body {
        background-color: #000;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100vh;
        margin: 0;
        padding: 0;
      }
      .loader {
        width: 5em;
        height: 5em;
        position: relative;
      }
      .loader::before {
        content: '';
        width: 5em;
        height: 5em;
        background-color: #f08080;
        position: absolute;
        top: 0;
        left: 0;
        border-radius: 4px;
        animation: jump 0.5s linear infinite;
      }
      .loader::after {
        content: '';
        width: 5em;
        height: 1em;
        background-color: #f0808050;
        position: absolute;
        top: 120%;
        left: 0;
        border-radius: 50%;
        animation: scale1 0.5s linear infinite;
      }
      @keyframes scale1 {
        0%,
        100% {
          transform: scale(1, 1);
        }
        50% {
          transform: scale(1.2, 1);
        }
      }
      @keyframes jump {
        15% {
          border-bottom-right-radius: 3px;
        }
        25% {
          transform: translateY(9px) rotate(22.5deg);
        }
        50% {
          transform: translateY(18px) scale(1, 0.9) rotate(45deg);
        }
        75% {
          transform: translateY(9px) rotate(67.5deg);
        }
        100% {
          transform: translateY(0) rotate(90deg);
        }
      }
    </style>
  </head>
  <body>
    <div class="loader"></div>
  </body>
</html>
